package com.edu.kindergarten.entity;

import java.util.ArrayList;

import com.edu.kindergarten.utils.LogUtils;

public class GrowthTreeEntity {

	protected Date date;
	protected String dateString;
	protected String content;
	protected ArrayList<String> imageList;
	protected ArrayList<CommentEntity> commentList;
	
	public class Date {
		private String year;
		private String month;
		private String day;
		
		public Date(String year,String month,String day){
			this.year = year;
			this.month = month;
			this.day = day;
		}
		
		public String getYear(){
			return year;
		}
		
		public String getMonth(){
			return month;
		}
		
		public String getDay(){
			return day;
		}
	}
	
	public void setDateString(String dateString){
		this.dateString = dateString;
		
		if (dateString.indexOf("/") > 0) {
			String[] d = dateString.split("/");
			date = new Date(d[0],d[1],d[2]);
		}
	}
	
	public String getDateString(){
		return dateString;
	}
	
	public Date getDate(){
		return date;
	}
	
	public void setContent(String content){
		this.content = content;
	}
	
	public String getContent(){
		return content;
	}
	
	public void setImageList(ArrayList<String> imageList){
		this.imageList = imageList;
	}
	
	public ArrayList<String> getImageList(){
		return imageList;
	}
	
	public void setCommentList(ArrayList<CommentEntity> commentList){
		this.commentList = commentList;
	}
	
	public ArrayList<CommentEntity> getCommentList(){
		return commentList;
	}
}
